package com.hyt.it.ogt.pj.feign.tps;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.hyt.common.utils.result.Result;
import com.hyt.loginfo.config.OAuth2FeignRequestConfig;

@FeignClient(value = "it-ogt-webcommon", fallbackFactory = TpsClientHystrix.class, configuration = OAuth2FeignRequestConfig.class)
public interface TpsClient {

    @RequestMapping(value = "/bucket/uploadFileToHuawei", method = RequestMethod.PUT)
    Result uploadFileToHuawei(@RequestParam("officeId") String officeId, @RequestParam("path") String path, @RequestBody byte[] bytes);

    @RequestMapping(value = "/bucket/getbucketInfo", method = RequestMethod.GET)
    String getBucketTempCredential();

}
